package org.slf4j.impl;

import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;

public class StaticLoggerBinder implements LoggerFactoryBinder {

    private static final StaticLoggerBinder SINGLETON = new StaticLoggerBinder();
    private static final String loggetFactoryClassStr = MyLoggerFactory.class.getName();
    
    private final ILoggerFactory loggerFactory;
    
    public static final StaticLoggerBinder getSingleton() {
        return SINGLETON;
    }
    
    private StaticLoggerBinder() {
        this.loggerFactory = new MyLoggerFactory();
    }
    
    public ILoggerFactory getLoggerFactory() {
        return loggerFactory;
    }

    public String getLoggerFactoryClassStr() {
        return loggetFactoryClassStr;
    }

}
